home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
VideoFolder 1.0a
/
Source
/
ConvertToFinderIconPict.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-22
|
1KB
|
32 lines
class CFinderIconPicture
{
public: CFinderIconPicture ( short vRefNum, long dirID );
~CFinderIconPicture ( );
void AcceptPict ( GWorldPtr pic );
protected:
void AddCustomIconResource ( short refNum, OSType resType, GWorldPtr pic, Rect& r, unsigned short depth );
void CreateIconResourcesToFile ( GWorldPtr pic, short refNum, Rect& r );
void CreateTiledFile ( GWorldPtr pic, unsigned short x, unsigned short y );
void DeleteExistingIcons ( );
Handle MakeIcon(GWorldPtr srcGWorld, Rect* srcRect, short dstDepth, short iconSize);
Handle MakeICN_pound(GWorldPtr gwp, GWorldPtr maskP, Rect *srcRect, short iconDimension);
OSErr SetUpPixMap( short depth, /* Desired number of bits/pixel in off-screen */
Rect *bounds, /* Bounding rectangle of off-screen */
CTabHandle colors, /* Color table to assign to off-screen */
PixMapHandle aPixMap /* Handle to the PixMap being initialized */ );
void TearDownPixMap();
short mVRefNum;
long mDirID;
PixMapHandle mPix;
};